package cn.edu.ujn.park.dao;

import cn.edu.ujn.park.dao.Rate;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface RateMapper {
    int deleteByPrimaryKey(Integer rateId);

    int insert(Rate row);

    int insertSelective(Rate row);

    Rate selectByPrimaryKey(Integer rateId);

    int updateByPrimaryKeySelective(Rate row);

    int updateByPrimaryKey(Rate row);

    BigDecimal selectRate(String vehicle, String space);//用车辆类型和停车位类型查询费用


    Rate checkLogin(Rate rate);

    List<Rate> selectAll(Rate rate);

    Integer selectCount(Rate rate);

    String selectRateName(Integer rateId);

    Rate  selectByRateName(String name);
}